<template>
	<view class="content">
		<view class="msgItem" v-for="(item,index) in content" :key="index" @click="$navto.navto('../message_info/message_info',{id:item.id})">
			<text class="title">{{item.title}}</text>
			<text class="time">{{item.create_time}}</text>
			<text class="info" >详情></text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: ''
			}
		},
		methods: {},
		computed: {},
		onLoad() {
			// 消息列表
			this.$request.get(`userMsg/lists`).then(res => {
				console.log(res.data.data);
				this.content = res.data.data;
			})
		},
		onShow() {}
	}
</script>

<style lang="scss" scoped>
	.msgItem {
		width: 670rpx;
		height: 157rpx;
		position: relative;
		margin-left: 40rpx;
		margin-top: 60rpx;
		border-bottom: 1rpx solid #919191;
		.title {
			font-size: 32;
			font-weight: 700;
			color: #292929;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;

		}

		.time {
			position: absolute;
			font-size:24;
			font-weight:500;
			color: #919191;
			top:75rpx;
			left: 0;
		}

		.info {
			position: absolute;
			font-size:24;
			font-weight:500;
			color: #4E97AD;
			top:75rpx;
			right: 0;
		}
	}

	.content {
		width: 100%;
		height: 100vh;
		background-color: #fff;
		overflow-y: scroll;
		background: url("https://miantou.guguan.net/img/common/bg.png");
		background-size: 100% auto;
	}

	page {
		width: 100%;
		height: 100vh;
		background-color: #fff;
		overflow-y: scroll;
	}
</style>